<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>订单详情</title>
		<meta name="viewport"
			content="width=device-width,height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="renderer" content="webkit" />
		<meta name="aplus-xplug" content="NONE">
		<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="/static/layui/css/modules/admin/default/admin.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/new_layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/default.css" />
		<script type="text/javascript" charset="utf-8" src="/static/layui/layui.js"></script>
		<script type="text/javascript" charset="utf-8" src="/static/js/index.js"></script>
		<style> 
			#shopping_list {
				color: #3c3c3c;
			}

			#shopping_list .layui-form-radio {
				padding-left: 20px;
				display: block;
			}

			#shopping_list .layui-form-radioed {
				border: 1px solid #119fff;
				background-color: #D9EDF7;
				margin: 5px 0 7px;
				-webkit-box-shadow: 5px 5px 0 #f3f3f3;
				box-shadow: 5px 5px 0 #f3f3f3;

			}

			.layui-form-label2 {
				float: left;
				display: block;
				padding: 9px 15px 9px 0px;
				font-weight: 400;
				line-height: 20px;
			}

			form .layui-form-item .layui-form-label {
				width: 70px;
			}

			#shopping_list .layui-form-radioed div {
				font-size: 16px;
				font-weight: bold;
				line-height: 36px;
			}

			#shopping_list .phone {
				font-weight: 700;
				font-size: 16px;
				color: grey;
			}

			#shopping_list .edit_shopping {
				padding-left: 10px;
				font-weight: normal;
				color: #ff6600;
				display: inline;
			}

			.express_no {
				color: #0077CF;
			}

			.express_time {
				font-size: 12px;
				color: #808080;
			}

			.layui-field-box .layui-form-item {
				margin-bottom: 0px;
			}

			.invoice-link {
				background: #2F4056;
				padding: 4px 10px;
				border-radius: 3px;
				font-style: italic;
				vertical-align: middle;
			}
			.error-class .layui-checkbox-disbaled span{
				background-color: #FF5722 !important;
			}
			.error-class .layui-checkbox-disbaled, .error-class .layui-checkbox-disbaled i,  .error-class .layui-checkbox-disbaled i:hover{
				border-color: #FF5722 !important;
			}
		</style>
	</head>

	<body class="default">
		<div id="select_orders" style="display: none;">
			<div class="layui-form" style="display: flex; justify-content: space-between;width: 100%;">
				<div>
				<textarea name="input_order" id="input_order" style="height: 300px;width: 180px;" placeholder="粘贴/输入订单号,每行一个订单" class="layui-textarea"></textarea>
				<div><button type="button" id="search_order_btn" class="layui-btn layui-btn-normal search_order_btn" style="width: 180px;">搜索订单号</button></div>
				</div>
				<div>
					<div id="check_order" style="height: 300px; width: 740px; border: 1px solid #f0f0f0; overflow-y: auto;">
						
					</div>
					<div style="line-height: 36px;">采购总金额：<span id="caigou_all_money">0</span></div>
				</div>
			</div>
		</div>
		<div style="margin: 30px 20px;">

			<form class="layui-form" lay-filter="tpl_order" action="{:url('order/saveData')}">
				<div class="layui-form-item">

					<div class="layui-input-block" style="margin-left:0px;">
						<ul class="layui-timeline layui-timeline-plane">
							<li class="layui-timeline-item {if condition=" $data['order_state'] EQ 1"}half{elseif
								condition="$data['order_state'] GT 1" /} over{/if}">
								<i class="layui-icon layui-timeline-axis layui-icon-radio"></i>
								<div class="layui-timeline-content layui-text">
									<h3 class="layui-timeline-title"><span>下单</span></h3>
									<p>{$data.create_time}</p>
								</div>
							</li>
							<li class="layui-timeline-item {if condition=" $data['order_state'] EQ 2"}half{elseif
								condition="$data['order_state'] GT 2" /} over{/if}">
								<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
									$data['order_state'] EGT 2"}layui-icon-radio{/if}"></i>
								<div class="layui-timeline-content layui-text">
									<h3 class="layui-timeline-title"><span>确认订单</span></h3>
									<p>{$data.confirm_time}</p>
								</div>
							</li>
							<li class="layui-timeline-item {if condition=" $data['order_state'] EQ 3"}half{elseif
								condition="$data['order_state'] GT 3" /} over{/if}">
								<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
									$data['order_state'] EGT 3"}layui-icon-radio{/if}"></i>
								<div class="layui-timeline-content layui-text">
									<h3 class="layui-timeline-title"><span>发货</span></h3>
									<p>{$data.shopping_time}</p>
								</div>
							</li>
							<li class="layui-timeline-item {if condition=" $data['order_state'] EQ 4"}half{elseif
								condition="$data['order_state'] GT 4" /} over{/if}">
								<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
									$data['order_state'] EGT 4"}layui-icon-radio{/if}"></i>
								<div class="layui-timeline-content layui-text">
									<h3 class="layui-timeline-title"><span>收货</span></h3>
									<p>{$data.receipt_time}</p>
								</div>
							</li>
							<li class="layui-timeline-item {if condition=" $data['order_state'] EQ 5"}over{/if}">
								<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
									$data['order_state'] EGT 5"}layui-icon-radio{/if}"></i>
								<div class="layui-timeline-content layui-text">
									<h3 class="layui-timeline-title"><span>完成</span></h3>
									<p>{$data.over_time}</p>
								</div>
							</li>
						</ul>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block" style="margin-left:0px;">
						
						{if condition="$data['supplier_state'] NEQ 1"}
						<div style="margin-bottom: 20px;display: none; color:#ff0000; font-weight:bold;" class="tips-brandcert">
							 〖需要该货源请联系岳艳青18911354051〗
						</div>
						{if condition="!in_array($data['order_type'],[5,7])"}
						<button type="button" class="layui-btn layui-btn-normal"
							lay-filter="zhiding_confirm">确认信息</button>
						{/if}
						{else /}
						{if condition="$data['order_state'] EQ 4 && $data['receipt_state'] EQ 2 &&
						$data['invoice_state'] EQ 2 && $data['pay_state'] EQ 2"}
						{if condition="!in_array($data['order_type'],[5,7])"}
						<button type="button" class="layui-btn layui-btn-normal" lay-filter="over_order">订单完成</button>
						{/if}
						{/if}
						{if condition="$data['order_state'] EQ 1"}
						{if condition="!in_array($data['order_type'],[5,7])"}
						<button type="button" class="layui-btn layui-btn-normal"
							lay-filter="confirm_order">确认订单</button>
						{/if}
						{/if}
						{if condition="$data['order_state'] EQ 1 OR $data['order_state'] EQ 2"}
						<button type="button" class="layui-btn layui-btn layui-btn-danger" lay-filter="cancel_order"
							style="display:none;">取消订单</button>
						{/if}
						{/if}
						<button type="button" id="close_page" class="layui-btn layui-btn-primary">关闭</button>
					</div>
				</div>
				<table wdith="100%">
					<tr>
						<td width="22%">
							<div class="layui-form-item">
								<label class="layui-form-label">订单号</label>
								<div class="layui-input-inline" style="width:180px;">
									<span
										style="font-size: 16px; color: #ff6600; line-height: 38px;">{$data.out_order_no}</span>
								</div>
							</div>
						</td>
						<td width="18%">

							<div class="layui-form-item">
								<label class="layui-form-label">订单金额</label>
								<div class="layui-input-inline text-price" style="width:160px;">
									{$data.order_money}
								</div>
								<div class="layui-input-inline">
									{if condition="$data['shoukuan_time']"}
									收款倒计时：{$data.shoukuan_time}
									{/if}
								</div>
							</div>
						</td>
						<td width="18%">
							<div class="layui-form-item">
								<label class="layui-form-label">折扣后金额</label>
								<div class="layui-input-inline text-price" id="order_price_rate" style="width:160px;">
									{$data.supplier_rate_money}
								</div>
							</div>
						</td>
						<!--   <td width="21%">
				<div class="layui-form-item">
					<label class="layui-form-label" style="width:110px;">优士发票编号</label>
					<div class="layui-input-inline"  style="width:160px;">
						<span style="font-size: 16px; color: #ff6600; line-height: 38px;">{$data.invoice_duty}</span>
					</div>
				</div>
							 </td>
						 <td width="21%">
				<div class="layui-form-item">
					<label class="layui-form-label" style="width:130px;">供应商发票编号</label>
					<div class="layui-input-inline" style="width:160px;">
						<span style="font-size: 16px; color: #ff6600; line-height: 38px;">{$data.caigou_invoice_duty}</span>
					</div>
				</div></td>-->
						<div class="layui-form-item" style="display:none;">
							<label class="layui-form-label">售后类型</label>
							<div class="layui-input-block" style="margin-left:115px">
								<select name="shouhou_type" lay-filter="shouhou_type_filter">
									<option value="1">无需售后</option>
									<option value="2">漏发货</option>
									<option value="3">多发货</option>
									<option value="4">错发</option>
									<option value="5">换货</option>
									<option value="6">退货</option>
									<option value="7">维修调试</option>
									<option value="8">安装</option>
								</select>
							</div>
						</div>

					</tr>
				</table>
				<table width="100%">
					<tr>
						<td colspan="2" width="66%" valign="top">
							<blockquote class="layui-elem-quote layui-quote-nm" style="width:95%;padding:9px;">
								<div class="layui-form-item" style="margin:0px;">
									<label class="layui-form-label"
										style="width:120px; text-align:left; font-weight:bolder;">用户订单备注</label>
									<div class="layui-input-inline"
										style="color:#ff0000; font-weight:bolder;width:80%;padding-top:9px;">
										{$jun_param.remark}
									</div>
								</div>
							</blockquote>

							<blockquote class="layui-elem-quote layui-quote-nm" style="width:95%;padding:9px;">
								<div class="layui-form-item" style="margin:0px;">
									<label class="layui-form-label"
										style="width:120px; text-align:left; font-weight:bolder;">客服提醒</label>
									<div class="layui-input-inline"
										style="color:#ff0000; font-weight:bolder;width:80%;padding-top:9px;">
										{$data.remark}
									</div>
								</div>
							</blockquote>
						</td>
						<td rowspan="3" width="33%" valign="top">
							<div class="layui-form-item">
								<div>
									<div class="layui-input-block" style="margin-left:0px;">
										<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
											<div style="display: flex; justify-content: space-between;">
												<span>发票申请状态:<font id="apply_invoice_state"></font></span>
												<!--	{if condition="$data['supplier_id'] eq '431'"}
								<button type="button" style="margin-left: 20px; display: none;" id="apply_invoice_shehe" class="layui-btn layui-btn-sm apply_invoice">申请发票</button>
								{/if}
							-->             {if condition="!in_array($data['order_type'],[5,7])"}
											{if condition="in_array($data['supplier_id'],['10000']) EQ false"}
												{if condition="$data['gys_fh_state'] EQ '1'"}
												<button type="button" style="margin-left: 20px; display: none;"
													id="apply_invoice_shehe"
													class="layui-btn layui-btn-sm apply_invoice">申请发票</button>
												{else /}
												<button type="button" style="margin-left: 20px; display: none;"
													disabled="disabled" id="apply_invoice_shehe"
													class="layui-btn layui-btn-sm apply_invoice layui-btn-disabled">发货后可申请发票</button>
												{/if}
												{if condition="$data['apply_state'] NEQ '1'"}
												<button id="apply_invoice_views" style="margin-left: 20px;"
													type="button"
													class="layui-btn layui-btn-sm apply_invoice_views">查看申请发票</button>
												{/if}
												{if condition="$data['apply_state'] EQ '4'"}
												<button type="button" style="margin-left: 20px; display: none;"
													id="apply_invoice_chehui"
													class="layui-btn layui-btn-sm chehui_invoice">撤回</button>
												{/if}
											{/if}
											{/if}
											</div>
											
										</blockquote>
									</div>
									<div class="layui-input-block" style="margin-left:0px;">
										<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
											<strong>发票信息</strong><br>
											{if condition="$data['hezuodanwei'] EQ '优士'"}
											{$invoice_info}
											{elseif condition="$data['hezuodanwei'] EQ '卓品'"}
											公司名称：北京卓品时代科技有限公司<br>
											税号：91110105MA01M2XW5K<br>
											地址：北京市朝阳区广渠路1号院内146幢平房146-4<br>
											电话：010-87954452<br>
											开户行：招商银行股份有限公司北京西三环支行<br>
											账号：110939319510701
											{else /}
											{$invoice_info}
											{/if}
										</blockquote>
									</div>
								</div>
							</div>
							<div class="layui-form-item">

								<div class="layui-input-block" style="margin-left:0px;">

									<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
										<div class="" style="margin-bottom: 10px;">

											{volist name="data['caigou_invoice_pz_info']" id="list"}
											<div style="padding-bottom: 5px;">
												{if condition="$data['caigou_state'] NEQ 1"}
												<button type="button" data-key="{$key}"
													class="layui-btn layui-btn-xs layui-btn-danger remove-invoice">
													<i class="layui-icon">&#xe640;</i>
												</button>
												{/if}
												{$i}.发票号：{$list.duty} <span class="invoice-link">
													<a href="{$list.save_path}" style="color: #ffffff;"
														title="{$list.file_name}" target="_blank"><i
															class="layui-icon layui-icon-link"></i>查看发票</a>
												</span>

											</div>
											{/volist}
											<div>采购发票状态：[{if condition="$data['caigou_state'] EQ 1"}
												<span style="color: #009688;">审核通过</span>
												{elseif condition="$data['caigou_state'] EQ 2" /}
												<span style="color: #1E9FFF;">等待审核</span>
												{elseif condition="$data['caigou_state'] EQ 3" /}
												<span style="color: #1E9FFF;">已驳回</span>
												{else /}<span style="color: #FF5722;">未提交</span>{/if}]<br>
												<span
													style="color: #FF5722;">1.纸质发票请依次上传清晰的发票图片<br>2.电子发票请上传PDF<br>3.已经上传的发票不可以随意作废！</span>
											</div>
										</div>
										{if condition="$data['caigou_invoice_duty'] EQ '' OR $data['caigou_state'] !=
										1"}
										<fieldset class="layui-elem-field layui-field-title" style="margin-bottom: 0px;">
										  <legend style="color: #FF5722;">第一步</legend>
										  <div class="layui-form-item fp_set fp_set_1">
											  <label class="layui-form-label">采购发票号</label>
											  <div class="layui-input-inline">
												  <input name="caigou_invoice_duty" id="caigou_invoice_duty" type="tel"
													  maxlength="24" class="layui-input" />
											  </div>
										  </div>
										</fieldset>
										<fieldset class="layui-elem-field layui-field-title" style="margin-bottom: 0px;">
										  <legend style="color: #FF5722;">第二步</legend>
											<div class="layui-form-item fp_set fp_set_2">
												<label class="layui-form-label">选择订单号</label>
												<div class="layui-input-inline">
													<textarea name="order_nos" id="order_nos" placeholder="请选择订单号" type="text" readonly class="layui-input"></textarea>
												</div>
											</div>
										</fieldset>
										<fieldset class="layui-elem-field layui-field-title" style="margin-bottom: 0px;">
										  <legend style="color: #FF5722;">第三步</legend>
											<div class="layui-form-item fp_set fp_set_3">
												<div class="layui-input-inline" style="width: 100%!important;">
													<input type="hidden" name="caigou_invoice_pz" id="caigou_invoice_pz" />
													<div class="layui-upload">
													  <div class="layui-upload-list" style="width: 100%;margin:16px 0px">
														<table class="layui-table">
														  <colgroup>
															<col width="70%">
															<col width="30%">
														  </colgroup>
														  <thead>
															<tr><th>文件名</th>
															<th>操作</th>
														  </tr></thead>
														  <tbody id="demoList"></tbody>
														</table>
													  </div>
													  
													</div> 
														
													<div class="up-view">
													
													</div>
													<button type="button" class="layui-btn layui-btn-normal layui-btn-sm fp_set fp_set_3" style="margin-right: 20px;" id="testList">选择多发票</button> 
													<button type="button" style="display: none;margin-right: 20px;" class="layui-btn layui-btn-sm fp_set fp_set_3" id="testListAction">开始上传</button>
													
													
												</div>
											</div>
											</fieldset>
											<fieldset class="layui-elem-field layui-field-title" style="margin-bottom: 0px;">
											  <legend style="color: #FF5722;">第四步</legend>
											  {if condition="!in_array($data['order_type'],[5,7])"}
											  <button type="button" lay-filter="submit_caigou_invoice"
												  class="layui-btn layui-btn-sm layui-btn-normal" style="margin-left: 0px;margin-top: 12px;">提交发票信息</button>
											  {/if}
											</fieldset>
										{/if}

									</blockquote>
									
								</div>
							</div>
						</td>
					</tr>
					<tr>
						<td width="33%" valign="top">
							<div class="layui-form-item">

								<div class="layui-input-block" style="margin-left:0px;">
									<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
										<div>
											<button type="button" data-email="{$data['email']}" class="layui-btn layui-btn-sm send_email_attr"><i
											class="layui-icon layui-icon-export"></i>发送邮件附件</button>
											<span class="success" id="send_email_txt">
												{if condition="$data['is_send_mail'] EQ 1"}
												邮件已发送
												{/if}
											</span>
										</div>
									</blockquote>
									<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
										<div>
											<input type="hidden" name="caigou_hetong" id="caigou_hetong"
												value="{$data.caigou_hetong|default=''}" />
											<div style="margin-bottom: 10px;">
												　　销售合同：
												{if condition="$data.xsht EQ ''"}未生成{elseif condition="$data.xsht EQ '生成中'"/}生成中...{else /}<a href="{$data.xsht}" target="_blank"
													class="layui-btn layui-btn-warm layui-btn-sm "><i
														class="layui-icon layui-icon-download-circle"></i>销售合同</a>
													<button type="button" data-email="{$data['email']}" data-invoice_url="{$data.xsht}" class="layui-btn layui-btn-sm send_email layui-bg-red">发邮件</button>
												{/if}
											</div>
											<div style="margin-bottom: 10px;">
												　　采购合同：{if condition="$data.cght EQ ''"}未生成{elseif condition="$data.cght EQ '生成中'" /}生成中...{else /}
												<a href="{$data.cght}" target="_blank"
													class="layui-btn layui-btn-warm layui-btn-sm "><i
														class="layui-icon layui-icon-download-circle"></i>采购合同</a>
												{/if}

												<button type="button" class="layui-btn layui-btn-sm up_caigou_hetong"><i
														class="layui-icon layui-icon-upload"></i>上传采购合同</button>
											</div>
											{if condition="$data['is_dianzi'] EQ 1"}
											<div style="margin-bottom: 10px;">
												　　采购合同1：{if condition="$data.cght1 EQ ''"}<a href="http://fen.utecbj.com/uploads/Excel/callet/{$data.out_order_no}采购合同.pdf" target="_blank"
												class="layui-btn layui-btn-warm layui-btn-sm "><i
													class="layui-icon layui-icon-download-circle"></i>查看</a>{else /}
												<a href="{$data.cght1}" target="_blank"
													class="layui-btn layui-btn-warm layui-btn-sm "><i
														class="layui-icon layui-icon-download-circle"></i>采购合同1</a>
												{/if}
												<button type="button" class="layui-btn layui-btn-sm up_caigou_hetong1"><i
														class="layui-icon layui-icon-upload"></i>上传采购合同1</button>
											</div>
											{/if}
										</div>
										<div style="margin-bottom: 10px;">
											　　　送货单（有金额）：{if condition="$data.shd EQ ''"}未生成{elseif condition="$data.shd EQ '生成中'" /}生成中...
											{else /}
											<a href="https://tailongji.dixintong.com/uploads/Excel/hetong/{$data.out_order_no}送货验收单.pdf"
												target="_blank" class="layui-btn layui-btn-warm layui-btn-sm "><i
													class="layui-icon layui-icon-download-circle"></i>送货单</a>
											<button type="button" data-email="{$data['email']}" data-invoice_url="https://tailongji.dixintong.com/uploads/Excel/hetong/{$data.out_order_no}送货验收单.pdf" class="layui-btn layui-btn-sm send_email layui-bg-red">发邮件</button>
											{/if}
										</div>
										<div style="margin-bottom: 10px;">
											　　　验收单（无金额）：
											{if condition="$data.ysd EQ ''"}
											未生成
											
											{elseif condition="$data.ysd EQ '生成中'" /}
											生成中...
											{else /}
											<a href="{$data.ysd}" target="_blank" class="layui-btn layui-btn-warm layui-btn-sm "><i class="layui-icon layui-icon-download-circle"></i>验收单</a>
											<button type="button" data-email="{$data['email']}" data-invoice_url="{$data['ysd']}"
													class="layui-btn layui-btn-sm send_email layui-bg-red">发邮件</button>
											{/if}
											{if condition="$data.ysd EQ ''"}
											<button type="button" data-order_no="{$data['order_no']}"
													class="layui-btn layui-btn-sm create_ysd layui-bg-red">生成验收单</button>
											
													{/if}
										</div>
										<div style="margin-bottom: 10px;">
											销售发票明细：
											{if condition="$data.xsfp EQ ''"}
											未生成
											{elseif condition="$data.xsfp EQ '生成中' OR $data.xsfp EQ '无发票明细'" /}
											{$data.xsfp}...
											{else /}
											<a href="{$data.xsfp}" target="_blank"
												class="layui-btn layui-btn-warm layui-btn-sm "><i
													class="layui-icon layui-icon-download-circle"></i>销售发票明细</a>
											<button type="button" class="layui-btn layui-btn-sm resetCgfp"
												data-type="xsfp"><i
													class="layui-icon layui-icon-refresh"></i>重新生成</button>
											{/if}
										</div>
										<div style="margin-bottom: 10px;">
											采购发票明细：
											{if condition="$data.cgfp EQ ''"}
											未生成
											{elseif condition="$data.cgfp EQ '生成中' OR $data.cgfp EQ '无发票明细'" /}
											{$data.cgfp}...{else /}
											<a href="{$data.cgfp}" target="_blank"
												class="layui-btn layui-btn-warm layui-btn-sm "><i
													class="layui-icon layui-icon-download-circle"></i>采购发票明细</a>

											<button type="button" class="layui-btn layui-btn-sm resetCgfp"
												data-type="cgfp"><i
													class="layui-icon layui-icon-refresh"></i>重新生成</button>
											{/if}
										</div>

									</blockquote>


								</div>
							</div>
						</td>
						<td width="33%" valign="top">
							<div class="layui-form-item" id="invoice_info">

								<div class="layui-input-block" style="margin-left:0px;">
									<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
										<div class="layui-form-item">
											<label class="layui-form-label">汇款单位</label>
											<div class="layui-input-inline">
												<select id="hkdw_select" lay-filter="hkdw_select"></select>
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label"></label>
											<div class="layui-input-inline">
												<input type="text" name="huikuandanwei" id="huikuandanwei"
													value="{$data.huikuandanwei}" lay-verify="required"
													class="layui-input" />
											</div>
										</div>
										<!-- {if condition="$data['returncode'] NEQ '成功' && $data['invoice_state'] NEQ '2'"} -->
										{if condition="$data['returncode'] NEQ '成功' AND (!isset($data['invoice_info_one']) OR !isset($data['invoice_info_one']['invoice_proof']) OR $data['invoice_info_one']['invoice_proof'] EQ '')"}
										<div class="layui-form-item">
											<label class="layui-form-label">发票类型</label>
											<div class="layui-input-inline">
												<input type="radio" name="invoice_type" lay-filter="invoice_type"
													value="1" checked="" title="普通发票">
												<input type="radio" name="invoice_type" lay-filter="invoice_type"
													value="3" {if
													condition="isset($data['invoice_info_one']['invoice_type']) and $data['invoice_info_one']['invoice_type'] EQ 3"
													}checked="" {/if} title="详细发票">
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">发票抬头</label>
											<div class="layui-input-inline">
												<input name="invoice_title" type="text"
													value="{$data.invoice_info_one.invoice_title|default=''}"
													class="layui-input" />
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">税号</label>
											<div class="layui-input-inline">
												<input name="invoice_duty" type="text"
													value="{$data.invoice_info_one.invoice_duty|default=''}"
													class="layui-input"
													oninput="value=value.replace(/[\u4E00-\u9FA5]/g,'')" />


											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">发票备注</label>
											<div class="layui-input-inline">
												<input name="invoice_beizhu" type="text"
													value="{$data.invoice_info_one.invoice_beizhu|default=''}"
													class="layui-input" />
											</div>
										</div>

										<div class="layui-form-item invoice_type3">
											<label class="layui-form-label">地址</label>
											<div class="layui-input-inline">
												<input name="invoice_addr" type="text" class="layui-input"
													value="{$data.invoice_info_one.invoice_addr|default=''}" />
											</div>
										</div>
										<div class="layui-form-item invoice_type3">
											<label class="layui-form-label">电话</label>
											<div class="layui-input-inline">
												<input name="invoice_tel" type="text" class="layui-input"
													value="{$data.invoice_info_one.invoice_tel|default=''}" />
											</div>
										</div>
										<div class="layui-form-item invoice_type3">
											<label class="layui-form-label">开户银行</label>
											<div class="layui-input-inline">
												<input name="invoice_bank" type="text" class="layui-input"
													value="{$data.invoice_info_one.invoice_bank|default=''}" />
											</div>
										</div>
										<div class="layui-form-item invoice_type3">
											<label class="layui-form-label">开户账号</label>
											<div class="layui-input-inline">
												<input name="invoice_account" type="text" class="layui-input"
													value="{$data.invoice_info_one.invoice_account|default=''}" />
											</div>
										</div>
										<div class="layui-form-item" style="display: none;">
											<label class="layui-form-label"></label>
											<div class="layui-input-inline">
												{if condition="!in_array($data['order_type'],[5,7])"}
												<button type="button" lay-submit lay-filter="submit_invoice"
													id="btn-invoice" class="layui-btn layui-btn-normal">开具发票</button>
												{/if}
											</div>
										</div>
										{else /}
										{volist name="data['invoice_info_list']" id="list"}
										<div class="layui-form-item">
											<div class="layui-input-block" style="margin-left: 0;">
												{if condition="$list['invoice_type'] NEQ 3"}
												{$list.invoice_title} {$list.invoice_duty} 发票金额：{$list.invoice_money}
												{/if}
												{if condition="$list['invoice_type'] EQ 3"}
												【增值税发票】{$list.invoice_title} {$list.invoice_duty}
												发票金额：{$list.invoice_money}
												{/if}
												{if condition="$list['invoice_proof'] NEQ ''"}
												<span class="layui-btn layui-btn-sm layui-bg-orange">
													<a href="{$list['invoice_proof']['save_path']}"
														style="color: #ffffff;" title="{$list.invoice_proof.file_name}"
														target="_blank"><i
															class="layui-icon layui-icon-link"></i>查看发票</a>
												</span>
												<button type="button" data-email="{$data['email']}" data-invoice_url="{$list['invoice_proof']['save_path']}"
														class="layui-btn layui-btn-sm send_email layui-bg-red">发邮件</button>
												{/if}
												<p style=" margin-top:20px;">
													<button type="button" data-invoice_id="{$list.invoice_id}"
														style="display:none;"
														class="layui-btn layui-btn-sm up_invoice"><i
															class="layui-icon layui-icon-upload"></i>发票凭证</button>
													{if condition="!in_array($data['order_type'],[5,7])"}
													<button type="button" data-invoice_id="{$list.invoice_id}"
														class="layui-btn layui-btn-normal layui-btn-sm get_invoice"
														style="display:none;"><i
															class="layui-icon layui-icon-ok-circle"></i>发票已收货</button>
													{/if}
												</p>

											</div>
										</div>
										{/volist}
										{/if}
									</blockquote>

								</div>
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="2" width="66%" valign="top">
							{if condition="MEMBER_ID EQ '360'"}
							<blockquote class="layui-elem-quote layui-quote-nm" style="width:95%;padding:9px;">
								<table width="100%">
									<tr>
										<td width="33%">
											<div class="layui-form-item" style="margin:0px; width:100%">
												<label class="layui-form-label"
													style=" font-weight:bolder;text-align:left;  width:100%">收款计时：

													{if condition="$data['shoukuan_time']"}
													收款倒计时：{$data.shoukuan_time}
													{else /}
													{if condition="$data['gys_sh_state'] EQ 1"}
													<button type="button"
														class="layui-btn layui-btn-normal layui-btn-sm"
														lay-filter="submit_daojishi">收款倒计时</button>
													{else /}
													<span style="font-size: 16px; color: #ff6600; line-height: 38px;">
														未确认收货
													</span>
													{/if}
													{/if}
												</label>
											</div>
										</td>
										<td width="33%">
											<div class="layui-form-item" style="margin:0px; width:100%">
												<label class="layui-form-label"
													style="width:100%; text-align:left; font-weight:bolder;">支付方式：
													{$data.payment}</label>

											</div>
										</td>
										<td width="33%">
											<div class="layui-form-item" style="margin:0px; width:100%">
												<label class="layui-form-label"
													style="width:100%; text-align:left; font-weight:bolder;">支付状态：
													<span style="font-size: 16px; color: #ff6600; line-height: 38px;">
														{$data.pay_state_text}
													</span>
												</label>

											</div>
										</td>
									</tr>
								</table>
							</blockquote>
							{else /}
							{/if}
						</td>
					</tr>

				</table>

				<div class="layui-form-item">
					<label class="layui-form-label">收货地址</label>
					<div class="layui-input-block">
						<blockquote class="layui-elem-quote layui-quote-nm">
							<div id="shopping_list" style=" font-size:18px; font-weight:bolder;">
								{if condition="$data['api_param_arr']['Cityname'].$data['api_param_arr']['address'].$data['api_param_arr']['name'].$data['api_param_arr']['mobile'] NEQ $data['shopping_info']['province_name'].'·'.$data['shopping_info']['city_name'].'·'.$data['shopping_info']['area_name'].$data['shopping_info']['street'].$data['shopping_info']['contacts'].$data['shopping_info']['phone']"}
								{$data.api_param_arr.Cityname} {$data.api_param_arr.address}
									（{$data.api_param_arr.name} 收）<span class=phone>{$data.api_param_arr.mobile}</span>
									{/if}
								<input type="radio" value="{$data.shopping_info.shopping_id}"
								checked="" name="shopping_id" lay-skin="primary"
								title="更改为：{$data.shopping_info.province_name} {$data.shopping_info.city_name} {$data.shopping_info.area_name} {$data.shopping_info.street} （{$data.shopping_info.contacts} 收）<span class=phone>{$data.shopping_info.phone}</span>" />
							</div>
						</blockquote>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">订单商品</label>
					<div class="layui-input-block">
						<input type="hidden" name="goods_skus" value="{$data.cart_info.cart_ids}" />
						<table class="layui-hide" id="goods_list" lay-filter="goods_list"></table>
						<textarea id="copy_info"
							style="width: 1px; height: 1px; color: #ffffff; border-color: #ffffff; resize: none;"
							readonly></textarea>
					</div>
				</div>


				{if condition="$data['order_state'] GT 2"}
				<div class="layui-form-item">
					<label class="layui-form-label">配送信息</label>
					<div class="layui-input-block express-info">
						{volist name="express_list" id="list"}
						<fieldset class="layui-elem-field {$list.receipt_state==1?'wait':'over'}">
							<legend>{if condition="$list['is_exchange'] EQ 2"}<span
									style="color:#ff6600">【换货】</span>{/if}{$list.express_name}（<span
									class="express_no">{$list.express_no}</span>）<span
									class="express_time">发货时间：{$list.create_time}</span></legend>
							<div class="layui-field-box">
								<!--	{volist name="list['cart_list']" id="vo"}
								<input type="radio" name="express_redio{$list.express_id}_{$vo.cart_id}" checked=""
									value="{$vo.cart_id}" title="{$vo.goods_name}（{$vo.goods_sku}）（数量：{$vo.goods_num}）">
								{/volist}
							-->
								{if condition="$list['receipt_state'] EQ 1"}
								{if condition="!in_array($data['order_type'],[5,7])"}
								<button type="button" data-id="{$list.express_id}"
									class="layui-btn layui-btn-normal layui-btn-sm" lay-filter="submit_receipt"
									style="display: none;">确认收货</button>
								{/if}
								{else /}
								<div style="color: #ff6600;">收货时间：{$list.receipt_time}</div>
								{/if}

								{volist name="kuaidi['data']" id="vo"}
								<div>
									{$vo.time}--{$vo.context}--{$vo.status}--{$vo.areaName}
								</div>
								{/volist}
							</div>
						</fieldset>
						{/volist}
					</div>
				</div>
				{/if}
				{if condition="isset($is_install) and count($is_install) GT 0"}
				<div class="layui-form-item">
					<label class="layui-form-label">安装服务</label>
					<div class="layui-input-block install-info">
						{volist name="is_install" id="list"}
						<fieldset class="layui-elem-field over">
							<legend>{$list.goods_info.goods_name}（<span class="express_no">{$list.goods_sku}</span>）
							</legend>
							<div class="layui-field-box">
								<ul class="layui-timeline layui-timeline-plane layui-timeline-plane3">
									<li class="layui-timeline-item {if condition=" $list['install_info']['step'] EQ 1"}half{elseif condition="$list['install_info']['step'] GT 1" /} over{/if}">
										<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
											$list['install_info']['step'] GT 0"}layui-icon-radio{/if}"></i>
										<div class="layui-timeline-content layui-text">
											<h3 class="layui-timeline-title"><span>申请安装</span></h3>
											{if condition="$list['install_info']['step'] EQ 0"}
											<button type="button" data-cart_id="{$list.cart_id}"
												class="layui-btn layui-btn-normal layui-btn-sm"
												lay-filter="submit_install_info">录入安装信息</button>
											{else /}
											<p>安装地点：{$list['install_info']['option_json']['install_addr']}</p>
											<p>安装时间：{$list['install_info']['option_json']['install_time']}</p>
											<p>　联系人：{$list['install_info']['option_json']['contact_man']}</p>
											<p>联系方式：{$list['install_info']['option_json']['contact_phone']}</p>
											<p>录入时间：{$list['install_info']['option_json']['step_1_time']|date='Y-m-d
												H:i',###}</p>
											{/if}
										</div>
									</li>
									<li class="layui-timeline-item {if condition=" $list['install_info']['step'] EQ 2"}half{elseif condition="$list['install_info']['step'] GT 2" /} over{/if}">
										<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
											$list['install_info']['step'] GT 1"}layui-icon-radio{/if}"></i>
										<div class="layui-timeline-content layui-text">
											<h3 class="layui-timeline-title"><span>指派安装工程师</span></h3>
											{if condition="$list['install_info']['step'] EQ 1"}
											<button type="button" data-cart_id="{$list.cart_id}"
												class="layui-btn layui-btn-normal layui-btn-sm"
												lay-filter="submit_engireer_info">指派工程师</button>
											{elseif condition="$list['install_info']['step'] EQ 0" /}

											{else /}
											<p>　工程师：{$list['install_info']['option_json']['engineer']}</p>
											<p>联系电话：{$list['install_info']['option_json']['engineer_phone']}</p>
											<p>录入时间：{$list['install_info']['option_json']['step_2_time']|date='Y-m-d
												H:i',###}</p>
											{/if}
										</div>
									</li>
									<li class="layui-timeline-item {if condition=" $list['install_info']['step'] EQ 3"
										/} over{/if}">
										<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
											$list['install_info']['step'] EQ 3"}layui-icon-radio{/if}"></i>
										<div class="layui-timeline-content layui-text">
											<h3 class="layui-timeline-title"><span>安装完成</span></h3>
											{if condition="$list['install_info']['step'] EQ 2"}
											<button type="button" data-cart_id="{$list.cart_id}"
												class="layui-btn layui-btn-normal layui-btn-sm"
												lay-filter="submit_over_info">安装完成</button>
											{elseif condition="$list['install_info']['step'] LT 2" /}

											{else /}
											<p>完成时间：{$list['install_info']['option_json']['step_3_time']|date='Y-m-d
												H:i',###}</p>
											{/if}
										</div>
									</li>
								</ul>
							</div>
						</fieldset>
						{/volist}
					</div>
				</div>
				{/if}



				<div class="layui-form-item">
					<label class="layui-form-label">付款状态<br />（供货商）</label>
					<div class="layui-input-block">
						<blockquote class="layui-elem-quote layui-quote-nm">
							<div>
								{switch name="data['ghs_pay']"}
								{case value="1"}全部付款{/case}
								{case value="2"}质保金付款{/case}
								{case value="3"}部分付款{/case}
								{case value="4"}未付款{/case}
								{default /}未付款
								{/switch}
								{if condition="$data['ghs_intro'] NEQ ''"}
								<span style="padding-left: 10px;">备注：{$data.ghs_intro}</span>
								{/if}
							</div>
							{if condition="$data['pay_zhiyi'] NEQ ''"}
							<div style="color: #009688;padding-top: 10px;">
								质疑内容：{$data.pay_zhiyi}
							</div>
							{if condition="$data['pay_zhiyi_reback'] NEQ ''"}
							<div style="color: #5FB878;padding-top: 10px;">
								回复质疑：{$data.pay_zhiyi_reback}
							</div>
							{else /}
							<div style="margin-top: 10px;">
								<div class="layui-input-inline">
									<input type="text" name="pay_zhiyi_reback" placeholder="回复质疑内容"
										class="layui-input" />
								</div>
								<button type="button" class="layui-btn layui-btn-normal"
									lay-filter="pay_huifu_btn">回复质疑</button>
							</div>
							{/if}
							{/if}
						</blockquote>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">收款状态<br />（供货商）</label>
					<div class="layui-input-block">
						<blockquote class="layui-elem-quote layui-quote-nm">
							<div>
								<div class="layui-input-inline">
									<select name="shoukuan_pay">
										<option value="">收款状态</option>
										<option value="4" {if condition="$data['shoukuan_pay'] EQ 4" }selected="" {/if}>
											未收款</option>
										<option value="1" {if condition="$data['shoukuan_pay'] EQ 1" }selected="" {/if}>
											全部收款</option>
										<option value="2" {if condition="$data['shoukuan_pay'] EQ 2" }selected="" {/if}>
											质保金收款</option>
										<option value="3" {if condition="$data['shoukuan_pay'] EQ 3" }selected="" {/if}>
											部分收款</option>
										<option value="5" {if condition="$data['shoukuan_pay'] EQ 5" }selected="" {/if}>
											申请收款</option>
									</select>
								</div>
								<div class="layui-input-inline">
									<input type="text" name="shoukuan_intro" placeholder="收款说明"
										value="{$data.shoukuan_intro}" class="layui-input" />
								</div>
								{if condition="!in_array($data['order_type'],[5,7])"}
								<button type="button" class="layui-btn layui-btn-normal"
									lay-filter="shoukuan_pay_btn">确定</button>
								{/if}
							</div>
							<div>
								{if condition="$data['shoukuan_pay'] EQ '5'"}
								{if condition="$data['confirm_shoukuan_pay'] EQ 1"}
								<span class="layui-bg-green">申请通过</span>
								{elseif condition="$data['confirm_shoukuan_pay'] EQ 2" /}
								<div>
									<span class="layui-bg-yellow">等待审核</span>
									{else /}
									<span class="layui-bg-red">申请驳回</span>
									{/if}
									{/if}
								</div>
								{if condition="$data['shoukuan_zhiyi'] NEQ ''"}
								<div style="color: #009688;padding-top: 10px;">
									质疑内容：{$data.shoukuan_zhiyi}
								</div>
								{else /}
								<div style="margin-top: 10px;">
									<div class="layui-input-inline">
										<input type="text" name="shoukuan_zhiyi" placeholder="质疑内容"
											class="layui-input" />
									</div>
									<button type="button" class="layui-btn layui-btn-normal"
										lay-filter="shoukuan_zhiye_btn">质疑</button>
								</div>
								{/if}
								{if condition="$data['shoukuan_zhiyi_reback'] NEQ ''"}
								<div style="color: #5FB878;padding-top: 10px;">
									质疑回复：{$data.shoukuan_zhiyi_reback}
								</div>
								{/if}
						</blockquote>
					</div>
				</div>
				<!--	<div class="layui-form-item">
					<label class="layui-form-label">预计交货日期</label>
					<div class="layui-input-inline">
						<input name="delivery_date" lay-verify="required" type="text" readonly=""
							class="layui-input right-select" />
					</div>
				</div>	-->

				<div class="layui-form-item">
					<label class="layui-form-label">备注</label>
					<div class="layui-input-block" style="margin-left:115px">
						<textarea name="suppler_bz" class="layui-textarea">{$data.suppler_bz}</textarea>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">备注记录</label>
					<div class="layui-input-block" style="margin-left:115px">
						<blockquote class="layui-elem-quote layui-quote-nm" style="height: 200px; overflow-y: auto;">
							<ul class="layui-timeline">
								{volist name="orderRemark" id="list"}
								<li class="layui-timeline-item" style="padding-bottom: 0px;">
									<i class="layui-icon layui-timeline-axis">&#xe643;</i>
									<div class="layui-timeline-content layui-text">
										<h5 class="layui-timeline-title">
											{$list.create_time}【{$list.username}】 {$list.remark_content}</h5>
									</div>
								</li>
								{/volist}
							</ul>
						</blockquote>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">商品备注</label>
					<div class="layui-input-block" style="margin-left:115px">
						<blockquote class="layui-elem-quote layui-quote-nm" style="height: 200px; overflow-y: auto;">
							<ul class="layui-timeline ordergoods-remark">
								
							</ul>
						</blockquote>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">订单日志</label>
					<div class="layui-input-block" style="margin-left:115px;display: flex;">
						<blockquote class="layui-elem-quote layui-quote-nm" style="height: 200px; overflow-y: auto;width: 50%;">
							<ul class="layui-timeline">
								{volist name="order_log" id="list"}
								{if condition="stripos($list['view_text'],'同步军采数据') === false"}
								<li class="layui-timeline-item" style="padding-bottom: 0px;">
									<i class="layui-icon layui-timeline-axis">&#xe643;</i>
									<div class="layui-timeline-content layui-text">
										<h5 class="layui-timeline-title">
											{$list.create_time}【{$list.member_info.username}】 {$list.view_text}</h5>
									</div>
								</li>
								{/if}
								{/volist}
							</ul>
						</blockquote>
						<blockquote class="layui-elem-quote layui-quote-nm" style="height: 200px; overflow-y: auto;width: 50%;">
							<ul class="layui-timeline">
								{volist name="order_log" id="list"}
								{if condition="stripos($list['view_text'],'同步军采数据') !== false"}
								<li v-if="stripos($list['view_text']) != false" class="layui-timeline-item" style="padding-bottom: 0px;">
									<i class="layui-icon layui-timeline-axis">&#xe643;</i>
									<div class="layui-timeline-content layui-text">
										<h5 class="layui-timeline-title">
											{$list.create_time}【{$list.member_info.username}】 {$list.view_text}</h5>
									</div>
								</li>
								{/if}
								{/volist}
							</ul>
						</blockquote>
					</div>
				</div>


			</form>
		</div>
		<div id="apply_invoice" style="display: none; margin: 20px;">
			<table class="layui-hide" id="apply_invoice_list" lay-filter="apply_invoice_list">
				<div class="layui-form-item" style="width:100%;">
					<div style="color:#ff0000; font-weight:bold; font-size:16px; margin-bottom:10px;">客户发票申请后不可修改税务大类 进项和销项需要保持一致 请慎重申请！！！ <a href="https://tailongji.dixintong.com/税务大类编码表--可供查询.zip">税务大类编码表--可供查询，点击进入</a></div>
					<span style="width:25%; display:block;float:left;">发票抬头：{$data.invoice_info_list[0]['invoice_title']}</span>
					<span style="width:25%; display:block;float:left;">发票税号：{$data.invoice_info_list[0]['invoice_duty']}</span>
					<span style="width:25%; display:block;float:left;">订单金额：{$data.order_money}</span>
					<span style="width:25%; display:block;float:left;">合计金额：<font class="heji_jine">0</font></span>
				</div>
			</table>
		</div>
		<div id="select_goods" style="display: none; margin: 20px;">
			<div class="search-box">
				<form class="search_form layui-form" lay-filter="select_goods_search_form">
					<div class="layui-inline">
						<label class="layui-form-label">分类</label>
						<div class="layui-input-inline">
							<select name="category_sign1" id="category_search1" lay-verify="category_search1"
								lay-search>
							</select>
						</div>
						<div class="layui-input-inline">
							<select name="category_sign2" id="category_search2" lay-verify="category_search2"
								lay-search>
							</select>
						</div>
						<div class="layui-input-inline">
							<select name="category_sign3" id="category_search3" lay-verify="category_search3"
								lay-search>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">品牌</label>
						<div class="layui-input-inline">
							<select name="brand_sign" id="brand_sign" lay-verify="brand_sign" lay-search>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">商品编号</label>
						<div class="layui-input-inline">
							<input type="text" name="goods_sku" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">商品名称</label>
						<div class="layui-input-inline">
							<input type="text" name="goods_name" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">型号</label>
						<div class="layui-input-inline">
							<input type="text" name="goods_model" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="pack-up"></div>
				</form>

			</div>
			<table class="layui-hide" id="select_goods_list" lay-filter="select_goods_list"></table>
		</div>
		<div id="select_sale_attr" style="margin: 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_select_sale_attr">
			</form>
		</div>
		<div id="supplier" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_supplier" action="{:url('order/saveSupplier')}">
				<input type="hidden" name="order_no" value="{$data.order_no}" />
				<div class="layui-form-item">
					<label class="layui-form-label">选择供应商</label>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="supplier_id" lay-filter="supplier_id" lay-verify="required" lay-search>
							<option value="0" rate="0">请选择</option>
							{volist name="get_supplier" id="list"}
							<option value="{$list.member_id}" rate="{$list.supplier_rate}">{$list.supplier_name}
							</option>
							{/volist}
						</select>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">折扣率（%）</label>
					<div class="layui-input-inline">
						<input name="supplier_rate" id="supplier_rate" lay-verify="required" type="number"
							class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_supplier">确认供应商</button>
					</div>
				</div>
			</form>
		</div>
		<div id="express_edit" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_express_edit" action="{:url('order/editOrder')}">
				<input type="hidden" name="order_no" value="{$data.order_no}" />
				<input type="hidden" name="event" value="edit_fahuo_gys_edit" />
				<input type="hidden" name="order_id" value="{$data.order_id}" />
				<div style="color: red;margin: 0px 0px 20px 20px;">
					*必须按照真实物流填写
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">选择物流</label>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="wuliu_edit" lay-filter="wuliu_edit" lay-verify="required" lay-search>
							
						</select>
					</div>
				</div>
				<div class="layui-form-item" id="sjrsjh_edit">
					<label class="layui-form-label" style="width: 100px;">寄件人手机号</label>
					<div class="layui-input-inline">
						<input name="sjrsjh_edit" type="text" value="{$data.sjrsjh}" class="layui-input" placeholder="请正确填写寄件人手机号"/>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">物流单号</label>
					<div class="layui-input-inline">
						<input name="wuliudanhao_edit" lay-verify="required" value="{$data.wuliudanhao}" placeholder="请正确填写快递单号" type="text"
							class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">预计派送时间</label>
					<div class="layui-input-inline">
						<input name="post_date_edit" lay-verify="required" type="text" placeholder="格式：年-月-日"
							class="layui-input right-select" readOnly="readOnly">
				
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">预计送达时间</label>
					<div class="layui-input-inline">
						<input name="delivery_date_edit" lay-verify="required" type="text" placeholder="格式：年-月-日"
							class="layui-input right-select" readOnly="readOnly">
				
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">发货地</label>
					<div class="layui-input-inline" style="width: 400px;">
						<div class="layui-input-inline" style="width: 180px;">
							<select name="province2_edit" lay-filter="province2_edit" lay-verify="required" lay-search></select>
						</div>
						<div class="layui-input-inline" style="width: 180px;">
							<select name="city2_edit" lay-filter="city2_edit" lay-verify="required" lay-search></select>
						</div>
				
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">延迟推送</label>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="yanchi_edit" lay-filter="yanchi_edit" lay-verify="required">
							<option value="no">立即推送</option>
							<option value="yes">延迟推送</option>
						</select>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_gysexpress_edit">修改快递</button>
					</div>
				</div>
			</form>
		</div>
		<div id="express" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_express" action="{:url('order/editOrder')}">
				<input type="hidden" name="order_no" value="{$data.order_no}" />
				<input type="hidden" name="event" value="edit_fahuo_gys" />
				<div style="color: red;margin: 0px 0px 20px 20px;">
					*必须按照真实物流填写
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">选择物流</label>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="wuliu" lay-filter="wuliu" lay-verify="required" lay-search>
							
						</select>
					</div>
				</div>
				<div class="layui-form-item" id="sjrsjh" style="display: none;">
					<label class="layui-form-label" style="width: 100px;">寄件人手机号</label>
					<div class="layui-input-inline">
						<input name="sjrsjh" type="text" class="layui-input" placeholder="请正确填写寄件人手机号"/>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">物流单号</label>
					<div class="layui-input-inline">
						<input name="wuliudanhao" lay-verify="required" placeholder="请正确填写快递单号" type="text"
							class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">预计派送时间</label>
					<div class="layui-input-inline">
						<input name="post_date" lay-verify="required" type="text" placeholder="格式：年-月-日"
							class="layui-input right-select" readOnly="readOnly">

					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">预计送达时间</label>
					<div class="layui-input-inline">
						<input name="delivery_date" lay-verify="required" type="text" placeholder="格式：年-月-日"
							class="layui-input right-select" readOnly="readOnly">

					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">发货地</label>
					<div class="layui-input-inline" style="width: 400px;">
						<div class="layui-input-inline" style="width: 180px;">
							<select name="province2" lay-filter="province2" lay-verify="required" lay-search></select>
						</div>
						<div class="layui-input-inline" style="width: 180px;">
							<select name="city2" lay-filter="city2" lay-verify="required" lay-search></select>
						</div>

					</div>
				</div>
				{if condition="MEMBER_ID EQ '193' OR MEMBER_ID EQ '558'"}
				
				<div class="layui-form-item">
					<label class="layui-form-label" style="width: 100px;">延迟推送</label>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="yanchi" lay-filter="yanchi" lay-verify="required">
							<option value="no">立即推送</option>
							<option value="yes">延迟推送</option>
						</select>
					</div>
				</div>
		
				{/if}
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_gysexpress">确认发货</button>
					</div>
				</div>
			</form>
		</div>
		<div id="add_install_info" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_add_install_info" action="{:url('Order/addInstallInfo')}">
				<input type="hidden" name="cart_id" />
				<input type="hidden" name="step" value="1" />
				<div class="layui-form-item">
					<label class="layui-form-label">安装地址</label>
					<div class="layui-input-inline">
						<input name="install_addr" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">安装时间</label>
					<div class="layui-input-inline">
						<input name="install_time" lay-verify="required" type="text" class="layui-input"
							autocomplete="off" readonly="" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">联系人</label>
					<div class="layui-input-inline">
						<input name="contact_man" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">联系电话</label>
					<div class="layui-input-inline">
						<input name="contact_phone" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_add_install">确认信息</button>
					</div>
				</div>
			</form>
		</div>
		<div id="add_install_engineer" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_add_install_engineer" action="{:url('Order/addInstallInfo')}">
				<input type="hidden" name="cart_id" />
				<input type="hidden" name="step" value="2" />
				<div class="layui-form-item">
					<label class="layui-form-label">工程师</label>
					<div class="layui-input-inline">
						<input name="engineer" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">工程师电话</label>
					<div class="layui-input-inline">
						<input name="engineer_phone" lay-verify="required" type="tel" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_add_engineer">指派工程师</button>
					</div>
				</div>
			</form>
		</div>
		<div id="add_pay_info" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_add_pay_info" action="{:url('Order/addPayInfo')}">
				<div class="layui-form-item">
					<label class="layui-form-label">支付渠道</label>
					<div class="layui-input-inline">
						<input name="pay_bank" lay-verify="required" type="text" class="layui-input"
							placeholder="支付宝、微信、中国银行、工商银行等" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">支付账号</label>
					<div class="layui-input-inline">
						<input name="pay_card" lay-verify="required" type="text" class="layui-input"
							placeholder="支付宝微信账号，银行卡号" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">支付户名</label>
					<div class="layui-input-inline">
						<input name="pay_card_name" lay-verify="required" type="text" class="layui-input"
							placeholder="支付账号开户姓名" />
					</div>
				</div>
				<div class="layui-form-item" style="display: none;">
					<label class="layui-form-label">支付单号</label>
					<div class="layui-input-inline">
						<input name="pay_no" type="text" class="layui-input" placeholder="银行、支付宝、微信交易流水" />
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_add_pay_info">确定支付</button>
					</div>
				</div>
			</form>
		</div>
		<div id="returned_box" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_returned" action="{:url('Order/returned')}">
				<input type="hidden" name="goods_sku" />
				<input type="hidden" name="cart_id" />
				<input type="hidden" name="order_no" value="{$data.order_no}" />
				<div class="layui-form-item">
					<label class="layui-form-label">退换货</label>
					<div class="layui-input-inline">
						<input type="radio" name="returned_type" value="1" title="退货" checked>
						<input type="radio" name="returned_type" value="2" title="换货">
					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">回寄物流</label>
					<div class="layui-input-inline">
						<select name="back_express" lay-filter="back_express" lay-search>
							<option value="">请选择</option>
							<option value="shunfeng">顺丰速运</option>
							<option value="shentong">申通快递</option>
							<option value="yuantong">圆通速递</option>
							<option value="yundakuaiyun">韵达快运</option>
							<option value="zhongtong">中通快递</option>
							<option value="ems">EMS</option>
							<option value="jd">京东物流</option>
							<option value="baishikuaidi">百世快递</option>
							<option value="bsht">百事亨通</option>
							<option value="tiantian">天天快递</option>
							<option value="youzhengguonei">邮政快递包裹</option>
						</select>

					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">物流单号</label>
					<div class="layui-input-inline">
						<input name="back_express_no" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">退换货数量</label>
					<div class="layui-input-inline">
						<input type="number" name="returned_num" data-cart_num="1"
							lay-verify="required|number|gtzero|ltcart" value="1" class="layui-input"
							style="text-align: center; font-size: 18px; color:#ff6600; width: 80px; padding-right:15px">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">原因</label>
					<div class="layui-input-inline">
						<input name="returned_reason" type="text" class="layui-input" />
					</div>
				</div>


				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_returned">确认申请</button>
					</div>
				</div>
			</form>
		</div>

		<div id="shopping" style="margin: 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_shopping" action="{:url('shopping/saveData')}">
				<input type="hidden" name="shopping_id" />
				<input type="hidden" name="member_id" />
				<div class="layui-form-item">
					<label class="layui-form-label">配送地址</label>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="province" lay-filter="province" lay-verify="required" lay-search></select>
					</div>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="city" lay-filter="city" lay-verify="required" lay-search></select>
					</div>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="area" lay-filter="area" lay-verify="required" lay-search></select>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">详细地址</label>
					<div class="layui-input-inline" style="width: 500px;">
						<input type="text" name="street" lay-verify="required" placeholder="请输详细地址" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">收货人</label>
					<div class="layui-input-inline">
						<input name="contacts" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">联系电话</label>
					<div class="layui-input-inline">
						<input name="phone" lay-verify="required|phone|number" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label"></label>
					<div class="layui-input-inline">
						<input name="is_default" type="checkbox" class="layui-input" title="默认收货地址" />
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_shopping">保存数据</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
			</form>
		</div>
		<script>
			var shopping_list_url = "{:url('shopping/ajaxList')}",
				shopping_find_url = "{:url('shopping/ajaxFind')}",
				kuaidiList_url = "{:url('order/KuaidiList')}",
				save_cght1_url = "{:url('order/saveCght1')}",
				goods_cols = {$goods_cols},
				goods_list_url = "{:url('Goods/ajaxList')}",
				select_goods_cols = {$select_goods_cols},
				goods_cols_invoice = {$goods_cols_invoice},
				goods_cols_invoice_old = {$goods_cols_invoice},
				select_goods_info = {$data.cart_info.json_data},
				default_date = "{$data.delivery_date}",
				order_no = "{$data.order_no}",
				out_order_no = "{$data.out_order_no}",
				order_edit_url = "{:url('Order/editOrder')}",
				order_edit_cart_beizhu_url = "{:url('Order/cartBeizhu')}",
				invoice_info_json = {$data.invoice_info_json},
				remark_info = "{$data.remark}",
				order_state = "{$data.order_state}",
				depot_list_url = "{:url('Depot/ajaxList')}",
				depot_create_no_url = "{:url('Depot/createNo')}",
				shopping_state = "{$data.shopping_state}",
				save_alone_invoice_url = "{:url('Invoice/saveAloneInvoice')}",
				save_invoice_url = "{:url('Invoice/saveInvoice')}",
				category_select_uri = "{:url('Category/ajaxCategory')}",
				site_id = "{$site_id}",
				upload_uri = "{:url('Upload/uploadOne')}",
				upload_rename_uri = "{:url('Upload/uploadReName')}",
				upload_rename_uri2 = "{:url('Upload/uploadReName2')}",
				upload_rename_old_uri = "{:url('Upload/uploadReNameOld')}",
				paylog_view_url = "{:url('Paylog/views')}",
				brand_select_uri = "{:url('Brand/ajaxList')}",
				
				confirm_supplier = "{:url('order/confirmSupplier')}",
				gys_fh_state = "{$data.gys_fh_state}",
				gys_sh_state = "{$data.gys_sh_state}",
				apply_state = "{$data.apply_state}",
				supplier_id = "{$data.supplier_id}",
				wuliu = "{$data.wuliu}",
				dingyue = "{$data.dingyue}",
				yanchi = "{$data.yanchi}",
				yanchi_time = "{$data.yanchi_time}",
				caigou_invoice_duty = "{$data.caigou_invoice_duty}",
				caigou_invoice_pz = "{$data.caigou_invoice_pz}",
				down_saleht_url = "{:url('order/saleht',array('order_no'=>$data['order_no']))}",
				order_type = "{$data.order_type}",
				shouhou_type = "{$data.shouhou_type}",
				caitou_invoice_count = "{$data.caigou_invoice_index}",
				shopping_phone = "{$data.shopping_info.phone}",
				get_shopping_phone_url = "{:url('order/getShoppingPhone')}",
				save_apply_invoice_url = "{:url('order/saveApplyInfo')}",
				reset_fp_url = "{:url('order/resetFp')}",
				send_mail_attr_url = "{:url('order/sendMailAttr')}",
				send_mail_url = "{:url('index/sendMail')}",
				copy_city = "{$data.shopping_info.province_name}{$data.shopping_info.city_name}{$data.shopping_info.area_name}",
				copy_street = "{$data.shopping_info.street}（{$data.shopping_info.contacts} 收）{$data.shopping_info.phone}",
				copy_beizhu2 = `{$data.beizhu2}`,
				back_apply_invoice_url = "{:url('order/backApplyInfo')}",
				search_order_no_url = "{:url('order/searchOrderNo')}",
				order_goods_remark_url = "{:url('order/orderGoodsRemarkLog')}",
				upload_bjd = "{:url('goods/implodeJunXml')}",
				chk_runs_over = "{$chk_runs_over}",
				create_ysd_url = "{:url('order/exportYanshoudan')}",
				
				get_supplier = {$get_supplier_json};
			if (select_goods_info[0].apply_state == 1) {
				document.getElementById('apply_invoice_state').innerHTML = '未申请';
				document.getElementById('apply_invoice_shehe').style.display = 'block';
				document.getElementById('apply_invoice_chehui').style.display = 'none';
				document.getElementById('apply_invoice_views').style.display = 'none';
			} else if (select_goods_info[0].apply_state == 2) {
				document.getElementById('apply_invoice_state').innerHTML = '等待审核';
				document.getElementById('apply_invoice_chehui').style.display = 'block';
				document.getElementById('apply_invoice_shehe').style.display = 'none';
				document.getElementById('apply_invoice_views').style.display = 'block';
			} else if (select_goods_info[0].apply_state == 3) {
				document.getElementById('apply_invoice_state').innerHTML = '审核通过';
				document.getElementById('apply_invoice_shehe').style.display = 'none';
				document.getElementById('apply_invoice_chehui').style.display = 'block';
				document.getElementById('apply_invoice_views').style.display = 'block';
			} else {
				document.getElementById('apply_invoice_state').innerHTML = '已驳回,原因:' + select_goods_info[0].nopass_info;
				document.getElementById('apply_invoice_shehe').style.display = 'block';
				document.getElementById('apply_invoice_chehui').style.display = 'none';
				document.getElementById('apply_invoice_views').style.display = 'block';
			}
		</script>
		<script type="text/html" id="goodsToolbar">
			<div class="layui-btn-container">
				{if condition="!in_array($data['order_type'],[5,7])"}
				{{# if(gys_fh_state == 2){ }}

					<a type="button" data-id="shopping_goods" data-title="设置发货状态"
					 class="layui-btn layui-btn-normal layui-btn-sm tap-nav" lay-event="fahuoGys"><i
						 class="layui-icon layui-icon-release"></i>设置发货状态</a>

					{{# }else { }}
						{{# if(dingyue == 22 || yanchi == 'yes'){ }}
						{{# if(shopping_state == 1){ }}
						<button type="button" data-id="shopping_goods" data-title="修改快递"
						 class="layui-btn layui-btn-normal layui-btn-sm tap-nav" lay-event="fahuoGysEdit">修改快递</button>
						 {{# } }}
						{{# } }}
						<div class="layui-form-label" style="text-align: left; color: #FF6600;font-size: 14px;width:auto">
							
							已发货（【{$data.wuliu}:{$data.wuliudanhao}】【预计配送时间:{$data.post_date}】【预计送达时间:{$data.delivery_date}】）
							
						</div>
						{{# if(gys_sh_state == 2){ }}
						
							{{# if(shopping_state == 2){ }}
								{{# if (chk_runs_over == '0'){ }}
								<a type="button" data-id="shopping_goods" data-title="收货"
								 class="layui-btn layui-btn-normal layui-btn-sm tap-nav" lay-event="shouhuoGys">
									<i class="layui-icon layui-icon-release"></i>设置收货状态</a>
								{{# }else { }}
								<a type="button" class="layui-btn layui-btn-normal layui-btn-sm tap-nav">物流信息未推送完成</a>
								{{# } }}
								{{# } else { }}
									<button type="button" style="margin-left: 20px; " disabled="disabled"
									 class="layui-btn layui-btn-sm apply_invoice layui-btn-disabled">等待军采发货</button>
								{{# } }}
							{{# } else { }}
											<div class="layui-form-label"
											 style="text-align: left; color: #FF6600;font-size: 14px;">已收货</div>
							{{# } }}
						{{# } }}
					{/if}

			</div>
		</script>
		<script type="text/html" id="goods_tool">
			<div class="layui-btn-group">

				<a href="http://tailongjipc.dixintong.com/goods_detail.html?goods_sku={{d.goods_sku}}" target="_blank"
				 class="layui-btn layui-btn layui-btn-xs" data-title="查看"><i class="layui-icon layui-icon-file-b"></i></a>
				<a lay-event="copys" class="layui-btn layui-btn layui-btn-xs" data-title="询价"><i
					 class="layui-icon layui-icon-export"></i></a>
				<a lay-event="xiadan" class="layui-btn layui-btn layui-btn-xs" data-title="下单"><i
					 class="layui-icon layui-icon-cart"></i></a>
			</div>
			</div>
		</script>
		<script type="text/html" id="select_goods_tool">
			<div class="layui-btn-group">
				<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="select" data-title="选择"><i
					 class="layui-icon layui-icon-circle"></i></a>
				<a href="http://tailongjipc.dixintong.com/goods_detail.html?goods_sku={{d.goods_sku}}" target="_blank"
				 class="layui-btn layui-btn layui-btn-xs" data-title="查看"><i class="layui-icon layui-icon-file-b"></i></a>
			</div>
			</div>
		</script>

		<script type="text/html" id="goods_pictureTpl">
		{{# if(d.goods_picture){
				return '<img src="'+d.goods_picture.save_path+'" />';
				}
		}}
		</script>
		<script type="text/html" id="sale_attrTpl">
		{{#
				if(d.sale_attr == undefined || d.sale_attr.length == 0){
					return '<span>默认属性</span>';
				} else {
					return '<span class="right-select select-sale-attr">请选择</span>';
				}
			}}
		</script>
		<script src="/static/js/order/detail.js?v=20230823" type="text/javascript" charset="utf-8"></script>
		
	</body>
	
</html>
